<?php

App::uses('AppModel', 'Model');

class Slideshow extends AppModel {
    
    public $name     = 'Slideshow';
    public $useTable = 'slideshow';
    public $order    = 'Slideshow.position';
    
    public $validate = array(
        'title' => array(
            'rule'    => 'notEmpty',
            'message' => 'Morate uneti naslov'
        ),
        'image' => array(
                'rule'    => 'notEmpty',
                'message' => 'Morate odabrati sliku'
        ),
    );
    
}